src/matrix/api.d(406,68): Error: cannot take address of local `req` in `@safe` function `login` src/matrix/api.d(692,32): Error: `@safe` function `matrix.api.MatrixAPI.getRooms` cannot call `@system` function `object.keys!(string[string], string, string).keys` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/object.d(2453,7): `object.keys!(string[string], string, string).keys` is declared here src/matrix/api.d(720,34): Error: `@safe` function `matrix.api.MatrixAPI.extractRoomInfo` cannot call `@system` function `std.json.JSONValue.array` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/json.d(324,38): `std.json.JSONValue.array` is declared here src/matrix/api.d(743,29): Error: `@safe` function `matrix.api.MatrixAPI.getPublicRooms` cannot call `@system` function `std.json.JSONValue.array` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/json.d(324,38): `std.json.JSONValue.array` is declared here src/matrix/api.d(819,49): Error: cannot take address of parameter `req` in `@safe` function `sendMessage` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/ir.d(525,41): Error: `@safe` function `std.regex.internal.ir.RuntimeFactory!(BacktrackingMatcher, char).RuntimeFactory.construct` cannot call `@system` function `std.conv.emplace!(EngineType!(char, Input!char), const(Regex!char), Input!char, void[]).emplace` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/conv.d(4724,3): `std.conv.emplace!(EngineType!(char, Input!char), const(Regex!char), Input!char, void[]).emplace` is declared here /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/parser.d(36,28): Error: template instance `std.regex.internal.ir.RuntimeFactory!(BacktrackingMatcher, char)` error instantiating /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/parser.d(1025,25): instantiated from here: `makeRegex!(string, CodeGen)` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(443,19): instantiated from here: `Parser!(string, CodeGen)` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(391,25): instantiated from here: `regexImpl!string` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(399,17): instantiated from here: `regex!(string, immutable(char))` src/matrix/api.d(830,57): instantiated from here: `regex!string` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/ir.d(525,41): Error: `@safe` function `std.regex.internal.ir.RuntimeFactory!(ThompsonMatcher, char).RuntimeFactory.construct` cannot call `@system` function `std.conv.emplace!(EngineType!(char, Input!char), const(Regex!char), Input!char, void[]).emplace` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/conv.d(4724,3): `std.conv.emplace!(EngineType!(char, Input!char), const(Regex!char), Input!char, void[]).emplace` is declared here /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/parser.d(38,27): Error: template instance `std.regex.internal.ir.RuntimeFactory!(ThompsonMatcher, char)` error instantiating /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/parser.d(1025,25): instantiated from here: `makeRegex!(string, CodeGen)` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(443,19): instantiated from here: `Parser!(string, CodeGen)` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(391,25): instantiated from here: `regexImpl!string` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(399,17): instantiated from here: `regex!(string, immutable(char))` src/matrix/api.d(830,57): instantiated from here: `regex!string` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(830,43): Error: template instance `std.regex.internal.ir.defaultFactory!char` error instantiating /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(993,21): instantiated from here: `matchOnce!(Regex!char, string)` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(919,27): instantiated from here: `matchFirst!(string, Regex!char)` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(1217,71): instantiated from here: `replaceFirstWith!((m, sink) => replaceFmt(format, m, sink), string, Regex!char)` src/matrix/api.d(829,51): instantiated from here: `replaceFirst!(string, char, Regex!char)` src/matrix/api.d(860,50): Error: cannot take address of local `req` in `@safe` function `readReceipt` src/matrix/api.d(910,54): Error: cannot take address of local `req` in `@safe` function `sync` src/matrix/api.d(948,47): Error: `@safe` function `matrix.api.MatrixAPI.request` cannot call `@system` function `object.keys!(string[string], string, string).keys` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/object.d(2453,7): `object.keys!(string[string], string, string).keys` is declared here src/matrix/api.d(983,24): Error: `@safe` function `matrix.api.MatrixAPI.request` cannot call `@system` generated function `std.net.curl.HTTP.opAssign` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/net/curl.d(2370,1): `std.net.curl.HTTP.opAssign` is declared here /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/net/curl.d(1915,10): Error: no property `curl` for type `std.typecons.RefCounted!(Impl, cast(RefCountedAutoInitialize)1)` src/matrix/api.d(1012,17): Error: function `std.net.curl.HTTP.onReceiveHeader(void delegate(const(char[]) key, const(char[]) value) callback)` is not callable using argument types `(void delegate(const(char[]) key, const(char[]) value) pure @system)` src/matrix/api.d(1012,17): cannot pass argument `__lambda5` of type `void delegate(const(char[]) key, const(char[]) value) pure @system` to parameter `void delegate(const(char[]) key, const(char[]) value) callback` src/matrix/api.d(1026,17): Error: function `std.net.curl.HTTP.Protocol!().onReceive(ulong delegate(ubyte[]) callback)` is not callable using argument types `(ulong delegate(ubyte[] data) pure nothrow @system)` src/matrix/api.d(1026,17): cannot pass argument `__lambda6` of type `ulong delegate(ubyte[] data) pure nothrow @system` to parameter `ulong delegate(ubyte[]) callback` src/matrix/api.d(1056,38): Error: `@safe` function `matrix.api.MatrixAPI.request` cannot call `@system` function `std.json.JSONValue.object` /opt/dmd-safe/dmd/dmd-safe failed with exit code 1.